package com.hspedu.homework.homework03;

/**
 * @Author Stringzhua
 * @Date 2024/3/3 16:20
 * description:
 * (1)要求有属性"姓名name""年龄age""职称post""基本工资salary"
 * (2)编写业务方法,introduce(),实现输出教师的信息
 * (3)编写教师的三个子类：教授类(Professor)、副教授类、讲师类
 * 工资级别为:教授为1.3,副教授为1.2,讲师类为1.1
 * 在三个子类中重写父类的introduce()方法
 * (4)定义并初始化一个老师对象,调用业务方法,实现对象基本信息的后台打印
 */
public class homework03 {
    public static void main(String[] args) {
        Professor professor = new Professor("贾宝玉", 30, "高级职称", 30000, 1.3);
        professor.interduce();

        FuProfessor fuProfessor = new FuProfessor("爪爪", 25, "中级职称", 20000, 1.2);
        fuProfessor.interduce();

        SpeakTeacher speakTeacher = new SpeakTeacher("测试", 19, "讲师", 10000, 1.1);
        speakTeacher.interduce();
    }
}

